package com.game.dao.user.prop;

import com.coment.po.UserRolesProp;
import org.springframework.data.mongodb.repository.MongoRepository;

public interface UserRolesPropDao extends MongoRepository<UserRolesProp, String> {
    default UserRolesProp findAllByIdMust(String rolesId) {
        return findById(rolesId).orElseGet(() -> save(new UserRolesProp(rolesId)));
    }

}
